package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description RegisterController
 * @Author apeng
 * @Date 2024-12-02
 */
@RestController
@RequestMapping("/open/serve-provider")
@Api(tags = "机构注册")
public class RegisterController {


    @Resource
    private IServeProviderService serveProviderService;
    /**
     * 机构端用户注册
     */
    @PostMapping("/institution/register")
    @ApiOperation("机构注册")
    public void register(@RequestBody InstitutionRegisterReqDTO dto){
        serveProviderService.register(dto);
    }
}
